package jdbmaplite.db.mapper;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

import jdbmaplite.manager.ParseConfigException;
import jdbmaplite.manager.impl.JDBMapLiteManager;
import jdbmaplite.mapper.impl.JDBMapLiteDao;

public class UserDao extends JDBMapLiteDao {

	/**
	 * Default constructor.
	 */
	public UserDao(JDBMapLiteManager dbManager) throws ParseConfigException {
		super(dbManager);
	}

	/**
	 * Get User
	 */
	public User getUser(String userId) throws SQLException {
		return this.executeQuery(userId);
	}

	/**
	 * Get User
	 */
	public User getUser(Connection conn, String userId) throws SQLException {
		return this.executeQuery(conn, userId);
	}

	/**
	 * Get Users
	 */
	public List<User> getUsers(String userId) throws SQLException {
		return this.executeBulkQuery(userId);
	}

}